package IO流;

import java.io.*;

public class FileCopy缓冲区单字节 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("C:\\Users\\gdq\\OneDrive\\桌面\\File文件夹\\777.txt"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("C:\\Users\\gdq\\OneDrive\\桌面\\File文件夹\\copy1.txt"));
        int b;
        while ((b = bis.read())!=-1){
            bos.write(b);
        }
        bis.close();
        bos.close();
    }
}
